package pojo;

public enum EUserType {
	ADMIN, CLIENT, SERVICEMAN;

	public static EUserType parse(String type) {
		for (EUserType eType : EUserType.values()) {
			if (type.equalsIgnoreCase(eType.name()))
				return eType;
		}
		return CLIENT;

	}
	
//	public static void main(String[] args) {
//		EUserType type = parse("ServicEMan");
//		System.out.println(type);
//	}
}
